{extend name="common:frm_base" /}
{block name="content"}
<style>
    .layui-form-label{width:120px;}
</style>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" action="{:url('User/auditHandle')}" lay-filter="component-form-group">
                <div class="layui-form-item">
                    <label class="layui-form-label">单位名称</label>
                    <div class="layui-input-block">
                        <input style="width:70%;" type="text" class="layui-input" value="{$info.company}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">营业执照号码</label>
                    <div class="layui-input-block">
                        <input style="width:70%;" type="text" class="layui-input" value="{$info.business_number}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">营业执照</label>
                    <div class="layui-input-block" style="padding-top:8px;">
                        <a href="{$info.business_licence}" target="_blank">
                            <img height="150" src="{$info.business_licence}">
                        </a>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">相关证件号码</label>
                    <div class="layui-input-block">
                        <input style="width:70%;" type="text" class="layui-input" value="{$info.person_id_card}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">法人名称</label>
                    <div class="layui-input-block">
                        <input style="width:70%;" type="text" class="layui-input" value="{$info.person_name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">法人身份证</label>
                    <div class="layui-input-block" style="padding-top:8px;">
                        <a href="{$info.person_id_card_front}" target="_blank">
                            <img height="150" src="{$info.person_id_card_front}">
                        </a>
                        <a href="{$info.person_id_card_back}" target="_blank">
                            <img height="150" src="{$info.person_id_card_back}">
                        </a>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">管理员名称</label>
                    <div class="layui-input-block">
                        <input style="width:70%;" type="text" class="layui-input" value="{$info.manage_name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">管理员身份证</label>
                    <div class="layui-input-block" style="padding-top:8px;">
                        <a href="{$info.manage_id_card_front}" target="_blank">
                            <img height="150" src="{$info.manage_id_card_front}">
                        </a>
                        <a href="{$info.manage_id_card_back}" target="_blank">
                            <img height="150" src="{$info.manage_id_card_back}">
                        </a>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">管理员手机号码</label>
                    <div class="layui-input-block">
                        <input style="width:70%;" type="text" class="layui-input" value="{$info.manage_mobile}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" value="1" checked title="审核中">
                        <input type="radio" name="status" value="2" title="审核通过">
                        <input type="radio" name="status" value="3" title="审核不通过">
                    </div>
                </div>
                <div class="layui-form-item">
                    <input type="hidden" value="{$info.id}" name="id" />
                    <input style="display:none;margin-left:150px;" type="button" class="layui-btn" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    layui.config({
        base: '__LAYUIADMIN__/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'laydate'], function(){
        var $ = layui.$
            ,admin = layui.admin
            ,element = layui.element
            ,layer = layui.layer
            ,laydate = layui.laydate
            ,form = layui.form;

        form.render(null, 'component-form-group');

        laydate.render({
            elem: '#LAY-component-form-group-date'
        });

        form.on('checkbox(all_operation)', function (data) {
            var is_check = data.elem.checked;
            var value = data.value;
            if (is_check && value == 0) {
                //全选
                $(".o_check").prop('checked', true);
                form.render('checkbox');
            } else if (!is_check && value == 0) {
                //取消全选
                $(".o_check").prop('checked', false);
                form.render('checkbox');
            }
        });
    });
</script>
{/block}